package flyweight;

/**
 * @author wcj
 * @Date 2021/7/11 23:41
 * @Version 1.0
 */
public class Client {

    public static void main(String[] args) {
        FlyWeightFactory flyWeightFactory = new FlyWeightFactory();

        ConcreteWebSite concreteWebSite = new ConcreteWebSite("用户展示");
        ConcreteWebSite concreteWebSite1 = new ConcreteWebSite("博客");
        concreteWebSite.use(new User("wcj"));
        concreteWebSite1.use(new User("bss"));
    }
}
